import http from '../util/request.js'

export default {
    add: (obj)=>{
        return http({
            url: '/activity/venue',
            method:'post',
            data:obj,
            headers: {
            //定义将数据以json的形式传入后台(java)
            'Content-Type': 'application/json'
        }
        });
    },
    edit:(obj)=>{
        return http({
            url: '/activity/venue',
            method:'put',
            data:obj,
            headers: {
                //定义将数据以json的形式传入后台(java)
                'Content-Type': 'application/json'
            }
        });
    },
    del:(id)=> {
        return http({
            url: '/activity/venue/'+id,
            method: 'delete'
        });
    },
    page:(obj)=>{
        return http({
            url: '/activity/venue/page',
            method: 'get',
            params:obj   //以表单形式传入后台
        });
    },


}